home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows 6-Pak - Disc 3
/
Windows 6-Pak (InfoMagic) (Disc 3) (1999).ISO
/
Misc-Sound-Tools
/
eject.zip
/
EJECT.TXT
< prev
Wrap
Text File
|
1998-10-28
|
2KB
|
40 lines
------------------------------------------------------------------------------
EJECT.EXE - Eject the CDROM tray
Copyright (c) 1998 by Dave Navarro, Jr. (dave@basicguru.com)
------------------------------------------------------------------------------
As a relative "old-timer" in the computer world, I am still partial to
running DOS or "console" applications in Windows 95/98/NT. I almost
always have several 4DOS boxes open at the same time.
My mini-tower computer at work sits on the floor in a not-so convenient
spot. There simply isn't any room on my desk top. When you reach down to
press the button on the CD to open/close the tray, its located underneath
the tray door itself.
So, pressing the button to open the drive works ok, but when the tray is
out it covers the button where I can't quite reach it easily. Typically,
I'll double-click on "My Computer", right-click on the icon for my CDROM
drive, and select "Eject" which will close the drive. But, as a command
line guy, it's pain.
I wrote eject so that I could open and close the CDROM tray from a command
prompt in NT (it also works in Windows 95/98). Believe me, it's made my
life easier.
It's simple to use, just type "eject" at a command prompt and hit enter.
If your drive is closed, it will open. If it's open, it will close. If
you have more than one CDROM drive or a multi-CD carousel it won't do
anything. You must specify the drive letter on the command line:
eject f:
As usual, this utility is free. If you have any questions or suggestions,
please drop me an email message.
As soon as I figure out how to eject a ZIP disk, I'm gonna add support for
that too.
--Dave
dave@powerbasic.com